<extend name="Member/base" />
<block name="main">
<!--body-->			
<div class="kUi_content KUi_usercenter">
	<div class="row warp">
		<div class="usern-block">
			<include file="Member/leftnavi" />
			<div class="usern-main">
				<div class="main-block usern-main-noinof">
					<empty name="Category">
					<div>您还未获得发布文章的授权，请联系管理员开通权限！</div>
					<else />
					<div class="user-main-list">
						<div class="uinfolist">
							<div class="list-title">我的文章</div>
							<a href="{:U('Member/add')}" class="s-btn s-btn-def publish">发布文章</a>
						</div>
						<div class="list-content">
							<table class="s-table s-table-nowrap s-table-condensed">
								<thead>
									<tr>
										<th class="left">标题</th>
	                                    <th>发布时间</th>
										<th>状态</th>
	                                    <th>操作管理</th>
	                                </tr>
	                            </thead>
								<tbody>
									<volist name="list" id="data">
									<tr>
										<td><a href="{:U('Member/edit?uuid='.$data[uuid])}">{$data.title}</a></td>
										<td>{$data.create_time|date='y/m/d H:i',###}</td>
										<td style="text-align:center;">{$data.status_text}</td>
										<td class="edit"><a href="{:U('Member/edit?uuid='.$data[uuid])}">编辑</a><a href="{:U('Member/del?uuid='.$data[uuid])}">删除</a><eq name="data.status" value="1"><a href="{:U('article/'.$data['uuid'])}" target="_blank">访问</a></eq><eq name="data.status" value="2"><a href="{:U('article/preview?uuid='.$data['uuid'])}" target="_blank">预览</a></td></eq>
										<eq name="data.status" value="3"><a href="{:U('article/preview?uuid='.$data['uuid'])}" target="_blank">预览</a></td></eq>
									</tr>
									</volist>
								</tbody>
	                        </table>
	                        <div class="pages">
								<article:mypage uuid="$data['uuid']" listrow="10" />
							</div>
						</div>
					</div>
					</empty>
				</div>
			</div>
		</div>
	</div>
</div>
</block>